calculate conversion rate